package bookManage.Model.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;

/**
 * @BelongsProject: library-management-system-master
 * @BelongsPackage: bookManage.Model.entity
 * @Author: yuan wang
 * @CreateTime: 2023-02-06  16:40
 * @Description: TODO
 * @Version: 1.0
 */
public class BookShow {
    @ColumnWidth(value = 13)
    @ExcelProperty("书名")
    private String bookName;
    @ColumnWidth(value = 10)
    @ExcelProperty("作者")
    private String writer;
    @ColumnWidth(value = 9)
    @ExcelProperty("分类")
    private String kind;
    @ColumnWidth(value = 19)
    @ExcelProperty("编号")
    private String number;
    @ColumnWidth(value = 20)
    @ExcelProperty("出版社")
    private String publish;
    @ColumnWidth(value = 8)
    @ExcelProperty("总借阅数")
    private int borrowNumber;
    @ColumnWidth(value = 36)
    @ExcelProperty("图片地址")
    private String picture;
    @ColumnWidth(value = 10)
    @ExcelProperty("总数量")
    private int countAll;
    @ColumnWidth(value = 10)
    @ExcelProperty("在馆数")
    private int countExist;
    @ColumnWidth(value = 10)
    @ExcelProperty("借出数")
    private int countLend;

    public BookShow() {
    }

    public BookShow(String bookName, String writer, String kind, String number, String publish, String bookIntroduction, String writerIntroduction, int borrowNumber, String picture, int countAll, int countExist, int countLend) {
        this.bookName = bookName;
        this.writer = writer;
        this.kind = kind;
        this.number = number;
        this.publish = publish;
        this.borrowNumber = borrowNumber;
        this.picture = picture;
        this.countAll = countAll;
        this.countExist = countExist;
        this.countLend = countLend;
    }

    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    public String getWriter() {
        return writer;
    }

    public void setWriter(String writer) {
        this.writer = writer;
    }

    public String getKind() {
        return kind;
    }

    public void setKind(String kind) {
        this.kind = kind;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getPublish() {
        return publish;
    }

    public void setPublish(String publish) {
        this.publish = publish;
    }

    public int getBorrowNumber() {
        return borrowNumber;
    }

    public void setBorrowNumber(int borrowNumber) {
        this.borrowNumber = borrowNumber;
    }

    public String getPicture() {
        return picture;
    }

    public void setPicture(String picture) {
        this.picture = picture;
    }

    public int getCountAll() {
        return countAll;
    }

    public void setCountAll(int countAll) {
        this.countAll = countAll;
    }

    public int getCountExist() {
        return countExist;
    }

    public void setCountExist(int countExist) {
        this.countExist = countExist;
    }

    public int getCountLend() {
        return countLend;
    }

    public void setCountLend(int countLend) {
        this.countLend = countLend;
    }

    @Override
    public String toString() {
        return "BookShow{" +
               "bookName='" + bookName + '\'' +
               ", writer='" + writer + '\'' +
               ", kind='" + kind + '\'' +
               ", number='" + number + '\'' +
               ", publish='" + publish + '\'' +
               ", borrowNumber=" + borrowNumber +
               ", picture='" + picture + '\'' +
               ", countAll=" + countAll +
               ", countExist=" + countExist +
               ", countLend=" + countLend +
               '}';
    }
}
